package com.zimmur.service.order;

import java.util.List;

import com.zimmur.model.order.OrderDetail;
/**
 * 订单明细服务接口
 * @author Administrator
 *
 */
public interface IOrderDetailService {
	
	/**
	 * 根据订单Id获取订单明细
	 * @param orderId
	 * @return
	 */
	public List<OrderDetail> selectByOrderId(Long orderId);
	
	public boolean insertBatch(List<OrderDetail> list);
	
    int deleteByOrderId(Long orderId);
    
    OrderDetail selectByOrderDetailID(Long orderdetailid);
    
    OrderDetail selectByDetailIdAndUserId(Long detailId,Long userId);
    
    List<OrderDetail> selectByPrimaryKey(Long orderdetailid);
    
    int updateByPrimaryKeySelective(OrderDetail record);
    /**
     * 根据订单号查询其明细 是否以申请售后
     * @param orderId
     * @return
     */
    List<OrderDetail> selectByOrderIdAndIsService(Long orderId);
    /**
     * 修改售后状态
     * @param detail
     * @return
     */
    boolean updateOrderDetailServiceStatus(OrderDetail detail);
}
